<?php
/*
	Joomler!.net WebLink Information Module - version 1.1.1 for 1.5.x
______________________________________________________________________
	License http://www.gnu.org/copyleft/gpl.html GNU/GPL
	Copyright(c) 2009 Joomler!.net All Rights Reserved.
	Comments & suggestions: http://www.joomler.net/
*/

/**
* @package		Joomla
* @copyright	Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
* @license		GNU/GPL
*/

defined('_JEXEC') or die('Restricted access');

require_once (dirname(__FILE__).DS.'helper.php');

$weblinkitems = JWebLink_Information::getInfo($params);
if(count($weblinkitems) < 1){
    return;
}

$class = 'weblinkinfo'. $params->get('moduleclass_sfx');
if(JWebLink_Information::styleOutput($params)){
	require(JModuleHelper::getLayoutPath('mod_weblinkinfo', 'default_style'));
}

if(intval( $params->get('column') ) > 1){
	if(intval($params->get('group', 1))){
		require(JModuleHelper::getLayoutPath('mod_weblinkinfo', 'default_groupcolumns'));
	} else {
		require(JModuleHelper::getLayoutPath('mod_weblinkinfo', 'default_columns'));
	}
} else {
	if(intval($params->get('group', 1))){
		require(JModuleHelper::getLayoutPath('mod_weblinkinfo', 'default_group'));
	} else {
		require(JModuleHelper::getLayoutPath('mod_weblinkinfo'));
	}
}